#ifndef LOCALHOSTINFO_H
#define LOCALHOSTINFO_H

#include <QWidget>
#include <QPushButton>
#include <QLabel>

class LocalHostInfo : public QWidget
{
    Q_OBJECT
private:
    QString         m_ip;
    QString         m_gateway;
    QString         m_mask;
    QList<QLabel *> labelList;

public:
    explicit LocalHostInfo(QWidget *parent = nullptr);
    void    initLeftLabel();
    void    initRightLabel();
    void    getNetInfo(QString &ip, QString &gateway, QString &mask);
    void    setNetInfo();
    QString getIp();
    QString readIpConfig();
signals:
    void pageInfo(QString);
private slots:
    void backBtnDone();
};

#endif  // LOCALHOSTINFO_H
